-- GENERATED SPELL FOR [Death Talon Wyrmkin] --


function spell0_12465(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(22424,pUnit)
pUnit:RegisterEvent('Sorts_12465', 6311, 1)
end

function spell1_12465(pUnit, Event) --@Fireball Volley,n/a--
pUnit:FullCastSpellOnTarget(22425,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12465', 2000, 1)
end

function Sorts_12465(pUnit, Event)
local choix_sorts_12465 = math.random(0, 1)
if choix_sorts_12465 == 0 then
pUnit:RegisterEvent('spell0_12465', 1, 1)
end
if choix_sorts_12465 == 1 then
pUnit:RegisterEvent('spell1_12465', 1, 1)
end
end

function mob12465_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12465', math.random(1500, 3000), 1)
end

function mob12465_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12465_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12465_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12465, 1, 'mob12465_Action')
RegisterUnitEvent(12465, 2, 'mob12465_Leave')
RegisterUnitEvent(12465, 3, 'mob12465_Kill')
RegisterUnitEvent(12465, 4, 'mob12465_Die')
